package com.alinesno.cloud.busines.shop.manage.entity;
import com.alinesno.sdk.generator.table.annotation.ColumnComment;
import com.alinesno.sdk.generator.table.annotation.ColumnType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import cn.afterturn.easypoi.excel.annotation.Excel;
import com.alinesno.cloud.common.facade.mapper.entity.BaseEntity;

import java.util.Date;

/**
 * 功能名： 秒杀成功订单
 * 数据表：  item_kill_success
 * 表备注： 秒杀成功订单表
 * @author wangyongkang ${authorEmail}
 * @date 2022-03-17 23:48:40
 */
@TableName("item_kill_success")
public class ItemKillSuccessEntity extends BaseEntity {
    private static final long serialVersionUID = 1L;
    // fields
    /**
    * 秒杀成功生成的订单编号
    */
    @ColumnComment("秒杀成功生成的订单编号")
    @Excel(name="秒杀成功生成的订单编号")
    @ColumnType(length = 50)
    @TableField("code")
    private String code;
    /**
    * 商品id
    */
    @ColumnComment("商品id")
    @Excel(name="商品id")
    @ColumnType(length = 64)
    @TableField("item_id")
    private String itemId;
    /**
    * 秒杀id
    */
    @ColumnComment("秒杀id")
    @Excel(name="秒杀id")
    @ColumnType(length = 64)
    @TableField("kill_id")
    private String killId;
    /**
    * 用户id
    */
    @ColumnComment("用户id")
    @Excel(name="用户id")
    @ColumnType(length = 64)
    @TableField("user_id")
    private String userId;
    /**
    * 秒杀结果: -1无效  0成功(未付款)  1已付款  2已取消
    */
    @ColumnComment("秒杀结果: -1无效  0成功(未付款)  1已付款  2已取消")
    @Excel(name="秒杀结果: -1无效  0成功(未付款)  1已付款  2已取消")
    @ColumnType(length = 4)
    @TableField("status")
    private Integer status;
    /**
    * 创建时间
    */
    @ColumnComment("创建时间")
    @Excel(name="创建时间",exportFormat = "yyyy-MM-dd")
    @ColumnType(length = 0)
    @TableField("create_time")
    private Date createTime;
    //getter and setter
    public String getCode(){
        return this.code;
    }
    public ItemKillSuccessEntity setCode(String arg){
        this.code = arg;
        return this;
    }

    public String getItemId() {
        return itemId;
    }

    public void setItemId(String itemId) {
        this.itemId = itemId;
    }

    public String getKillId() {
        return killId;
    }

    public void setKillId(String killId) {
        this.killId = killId;
    }

    public String getUserId(){
        return this.userId;
    }
    public ItemKillSuccessEntity setUserId(String arg){
        this.userId = arg;
        return this;
    }
    public Integer getStatus(){
        return this.status;
    }
    public ItemKillSuccessEntity setStatus(Integer arg){
        this.status = arg;
        return this;
    }
    public Date getCreateTime(){
        return this.createTime;
    }
    public ItemKillSuccessEntity setCreateTime(Date arg){
        this.createTime = arg;
        return this;
    }
}
